package com.ruoyi.bussiness.mapper;

import java.util.List;

import com.ruoyi.bussiness.domain.SysBusinessCheckList;
import com.ruoyi.bussiness.domain.SysBusinessPolicy;
import org.apache.ibatis.annotations.Param;

/**
 * 业务_政策Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-18
 */
public interface SysBusinessPolicyMapper
{
    /**
     * 查询业务_政策
     *
     * @param policyId 业务_政策主键
     * @return 业务_政策
     */
    public SysBusinessPolicy selectSysBusinessPolicyByPolicyId(Long policyId);

    /**
     * 查询业务_政策列表
     *
     * @param sysBusinessPolicy 业务_政策
     * @return 业务_政策集合
     */
    public List<SysBusinessPolicy> selectSysBusinessPolicyList(SysBusinessPolicy sysBusinessPolicy);

    /**
     * 新增业务_政策
     *
     * @param sysBusinessPolicy 业务_政策
     * @return 结果
     */
    public int insertSysBusinessPolicy(SysBusinessPolicy sysBusinessPolicy);

    /**
     * 修改业务_政策
     *
     * @param sysBusinessPolicy 业务_政策
     * @return 结果
     */
    public int updateSysBusinessPolicy(SysBusinessPolicy sysBusinessPolicy);

    /**
     * 删除业务_政策
     *
     * @param policyId 业务_政策主键
     * @return 结果
     */
    public int deleteSysBusinessPolicyByPolicyId(Long policyId);

    /**
     * 批量删除业务_政策
     *
     * @param policyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBusinessPolicyByPolicyIds(Long[] policyIds);

    /**
     * @Author shining
     * @Description //TODO 获取上一个清单
     * @Date 17:24 2023/12/19
     **/
    SysBusinessPolicy getLastList(@Param(value = "orderNum") Integer orderNum);

    /**
     * @Author shining
     * @Description //TODO 获取下一个清单
     * @Date 17:26 2023/12/19
     **/
    SysBusinessPolicy getNextList(@Param(value = "orderNum") Integer orderNum);


    int updateOrderNum(Long policyId);
}
